﻿using MiniExcelLibs.Attributes;
using System.Collections.Generic;

namespace JinYuan.Models
{
    /// <summary>
    /// 通信组实体类
    /// </summary>
    public class Group
    {
        /// <summary>
        ///通信组名称
        /// </summary>
        public string GroupName { get; set; }
        /// <summary>
        /// 起始地址
        /// </summary>
        public string Start { get; set; }
        /// <summary>
        /// 长度
        /// </summary>
        public ushort Length { get; set; }
        /// <summary>
        /// 是否为触发读取
        /// </summary>
        public bool IsTiggerRead { get; set; }

        /// <summary>
        /// 是否需要反馈结果到PLC
        /// </summary>
        public bool IsFeedbackPlc { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsActive { get; set; }
        /// <summary>
        /// 备注说明
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 变量集合
        /// </summary>
        [ExcelIgnore]
        public List<Variable> VarList { get; set; }
    }
}
